package org.wiigee.control;

import android.content.Context;
import org.wiigee.device.AndroidDevice;
import org.wiigee.event.GestureListener;
import org.wiigee.filter.Filter;

public class AndroidWiigee extends Wiigee {

    
    protected static String pluginversion = "1.0.3 alpha - untested!";
    protected static String pluginreleasedate = "20101011";

    private AndroidDevice device;

    
    public AndroidWiigee(Context context) {
        super();
        device = new AndroidDevice(context);
    }

    public void addGestureListener(GestureListener listener) {
            device.addGestureListener(listener);
    }

    public void addFilter(Filter filter) {
            device.addAccelerationFilter(filter);
    }


    public AndroidDevice getDevice() {
        return device;
    }


    public void setTrainButton(int b) {
            device.setTrainButton(b);
    }

    public void setRecognitionButton(int b) {
            device.setRecognitionButton(b);
    }

    public void setCloseGestureButton(int b) {
            device.setCloseGestureButton(b);
    }

}
